const { Parser } = require("../src/Parser");

const parser = new Parser();

// const program = `
//  foo(x);
// `;

// const program = `
//  foo(x)();
// `;

// const program = `
//  console.log(x, y);
// `;

const program = `
  let s = "Hello, World!!!";
  let i = 0;
  while(i < s.length) {
    console.log(i, s[i]);
    i += 1;
  }

  test(333);
  testCall();
`;
const ast = parser.parse(program);

console.log(JSON.stringify(ast, null, 2));
